<!-- <div batch-test-directive default-list="$ctrl.data.interaction.response.defaultList" output="$ctrl.data.interaction.batchTestObject.output" env="$ctrl.data.service.home.envObject.object.total" status-object="$ctrl.data.interaction.batchTestObject.statusObject"></div> -->
<div class="home-project-inside-default home-project-inside-div" check-plug-directive input="$ctrl.data.info.plugObject">
    <header>
        <ul class="title-ul">
            <li class="btn-group-li pull-left" ng-if="$ctrl.powerObject.readWrite">
                <a class="eo-button-success common-btn" ng-click="$ctrl.data.fun.edit('add')">
                    <span class="iconfont icon-tianjia"></span><span class="btn-name">{{'0121610'|translate}}</span>
                </a>
                <a class="common-btn default-btn" ng-click="$ctrl.data.fun.batch.default()" ng-if="!$ctrl.data.info.batch.disable">
                    {{'0121611'|translate}}
                </a>
                <a class="common-btn default-btn" ng-click="$ctrl.data.info.batch.disable=false" ng-if="$ctrl.data.info.batch.disable">
                    <span class="iconfont icon-close"></span><span class="btn-name">{{'0121612'|translate}}</span>
                </a>
                <a class="common-btn default-btn" ng-click="$ctrl.data.fun.delete('batch')" ng-if="$ctrl.data.info.batch.disable">
                    <span class="iconfont icon-shanchu"></span><span class="btn-name">{{'0121613'|translate}}</span>
                </a>
            </li>
            <li class="divide-li pull-left" ng-if="$ctrl.powerObject.readWrite"><span></span></li> 
            <li class="search-li pull-left">
                <form name="searchForm">
                    <ul class="search-function-ul">
                        <li class="search-input-li">
                            <input class="eo-input" type="text" placeholder="{{'0121614'|translate}}" ng-model="$ctrl.data.interaction.request.tips" required>
                        </li>
                        <li class="search-btn-li">
                            <button class="iconfont icon-sousuo" ng-click="$ctrl.data.fun.search()"></button>
                        </li>
                    </ul>
                </form>
            </li>
        </ul>
    </header>
    <article class="first-level-article" ng-switch="$ctrl.data.info.plugObject.version>=194">
        <table>
            <thead>
                <tr>
                    <th class="first-th">{{'0121615'|translate}}</th>
                    <!-- <th class="third-th">
                        最后测试结果
                    </th> -->
                    <th class="second-th">{{'0121616'|translate}}</th>
                    <th class="forth-th" ng-if="$ctrl.powerObject.readWrite">{{'0121617'|translate}}</th> 
                </tr>
            </thead>
            <tbody>
                <tr ng-repeat="item in $ctrl.data.interaction.response.query" ng-click="$ctrl.data.fun.enter({item:item,$index:$index})" ng-class="{'elem-active':item.isClick&&$ctrl.data.info.batch.disable}">
                    <td>
                        {{item.caseName}}
                    </td>
                    <!-- <td title="{{item.codeDescription}}">暂无测试结果</td> -->
                    <td>{{item.updateTime}}</td>
                    <td ng-if="$ctrl.powerObject.readWrite"> 
                        <a class="home-project-inside-function-edit" ng-click="$ctrl.data.fun.edit('edit',{$event:$event,item:item})" ng-if="!$ctrl.data.info.batch.disable"><span class="iconfont icon-bianji"></span>{{'0121618'|translate}}</a>
                        <a class="home-project-inside-function-delete" ng-click="$ctrl.data.fun.delete('singal',{$event:$event,item:item,$index:$index})" ng-if="!$ctrl.data.info.batch.disable"><span class="iconfont icon-shanchu"></span>{{'0121619'|translate}}</a>
                    </td>
                </tr>
            </tbody>
        </table>
    </article>
    <footer>
        <div load-directive="$ctrl.data.fun.init(arg)">
        </div>
    </footer>
</div>